/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utils.files;

import java.io.*;
import java.util.*;
import javax.swing.filechooser.FileSystemView;

/**
 *
 * @author killan
 */
public class UtilDisk {

    public void getOS() {
        System.out.println(System.getProperty("os.name"));
    }

    public void getDisks() {
        List<File> files = Arrays.asList(File.listRoots());
        for (File f : files) {
            String s1 = FileSystemView.getFileSystemView().getSystemDisplayName(f);
            String s2 = FileSystemView.getFileSystemView().getSystemTypeDescription(f);
            System.out.println("getSystemDisplayName : " + s1);
            System.out.println("getSystemTypeDescription : " + s2);
        }
    }
}
